
'use strict';
const BaseService = require('./base');

class BannerService extends BaseService {

  async get() {
    return await this.ctx.model.Banner.findAll({
      where: {
        online: true
      },
      order: [
        ['index', 'ASC']
      ]
    })
  }
  
}

module.exports = BannerService;
